package com.easyjava.qingke.project.mybatis.IDao;

import java.util.List;

import com.easyjava.qingke.project.mybatis.pojo.Material;

public interface MaterialMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Material record);

    int insertSelective(Material record);

    Material selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Material record);

    int updateByPrimaryKey(Material record);
    
    List<Material> selectMaterial();
    
    Material  getMaterialByName(String name);
    
    Material  getMaterialByCode(String code);
    
}